(!) Please ask about problems and questions regarding this tutorial on answers.ros.org. Don't forget to include in your question the link to this page, the versions of your OS & ROS, and also add appropriate tags.

Initial OS Setup

Description: Bootable SD Card, OS Setup and Configuration

Tutorial Level:

Contents

+Bootable SD Image

+(WG)Copy/edit over useful files

  • + /etc/network/interfaces + /etc/wpa_supplicant/wpa_supplicant.conf + /root/willow-radius-ca.crt - edit hostname: sudo vim /etc/hostname; /etc/hosts + copy over useful files (root):
    • willow-radius-ca.crt; wpa_supplicant*; network_bringup.sh

+LOAD AND BOOT!

+Initial Wireless connection

  • (see Network modifications)

    - *purge* NetworkManager - add /etc/network/interfaces, wpa_supplicant.conf

+Install useful tools:

  • - openssh-server (for ssh-ing in - MUCH nicer) - vim (or your favorite cmd-line editor) - avahi-daemon avahi-autoipd libnss-mdns (for auto-discovery of ip) - locate (you're probably going to be doing some digging at some point)
    • (at some point after installing, run: $ updatedb)
    ~ wpasupplicant (to explicitly set it to manually install) $ sudo apt-get install openssh-server ssh vim avahi-daemon avahi-autoipd libnss-mdns locate wpasupplicant

+Setup ssh

  • - add password to user (root): $ passwd

ssh in

~ add color prompt: edit .bashrc; uncomment #force_color_prompt=yes

  • (( auto-wireless on boot? ))

+Edit sources

  • - may need to clean up duplicates if running armhf
    • > comment out duplicate source lists in sources.list.d/hwpack.*.list

    + add restricted universe multiverse to your existing sources.list

+Apt-get

  • update, upgrade
    • apt-get -f install apt-get upgrade (probably should have updated first)
    • .. may need to repeat and fiddle a few times ...

+Change Hostname

  • (instead of using 'linaro-alip' as machine name) 1) change machine name, edit /etc/hostname
    • $ vi /etc/hostname

      >> change name (e.g. linaro-alip) to your new name (ex: turtlecore)

    2) change hosts file for name resolution, edit /etc/hosts
    • - find line where it says something like:
      • 127.0.1.1 linaro-alip
      - change 'linaro-alip' to 'turtlecore' (or whatever you picked in hostname)
      • 127.0.1.1 turtlecore

+Network Configuration - Stage 2

  • >Disable/Remove NetworkManager

    • - at least need to disable it from startup
      • - could use some combination of update-rc.d and stopping services... (see wifi resources)
      - I'm frustrated with it all, so I'm just going to uninstall it, since I can always reinstall later

    >Remove

    • - ran this...
    • $ apt-get purge network-manager network-manager-gnome
    • - but it also removed 'linaro-alip', which was worrisome... - so I reinstalled 'linaro-alip' (which reinstalled the nm ones)... - and then disabled instead:

    >Disable

    • - using multiple instructions..
      • $ stop network-manager #stop daemon

        $ update-rc.d -f NetworkManager remove #remove NetworkManager just for fun $ update-rc.d -f network-manager remove #remove actual service from startup and stuff $ vim /etc/init/network-manager.conf #edit conf file and add line 'manual' (without quotes), near the top

        • >> manual

    + added temporary auto network config stuff into /etc/rc.local
    • - should change and figure out WPA2 or VPN or something

++ROS Setup (Fuerte)

  • + Setup for Installation
    • - install bootstrap dependencies - install core library dependencies - (skipping graphical deps) - install pip install
      • (apt-get install python-pip, update with sudo pip install -U pip)
      - install rosinstall and friends
      • $ sudo pip install -U rosinstall vcstools rospkg rosdep - had same "symbols not loaded" error with rosdep - had to use 'sudo' even though I was root or it wouldn't find it ... =/
    • >> NEXT: Install core libraries (turtlebot variant stuff)

      • (should probably get user stuff setup too)


Pre-tips

+ Serial connection

Wiki: TurtleCore/Tutorials/Overo Setup (last edited 2012-08-21 22:34:18 by RobLinsalata)